<?php

namespace common\validate;

class EpisodeStepCategorySealTime extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    public function sceneCreate()
    {
        return $this->append("data", "require|array")
            ->append("data.entity_id", "require|integer")
            ->append("data.project_id", "require|integer")
            ->append("data.step_category_ids", "require")
            ->append("data.step_category_code", "require")
            ->append("data.seal_time", "require|integer");
    }

    public function sceneDelete()
    {
        return $this->append('param', 'require')
            ->append('param.filter', 'array');
    }

    // Update 验证场景定义
    public function sceneUpdate()
    {
        return $this->append('data', 'require|array');
    }

    // EpisodeStepCategoryList 验证场景定义
    public function sceneEpisodeStepCategoryList()
    {
        return $this->append('param', 'require')
            ->append('param.filter', 'array');
    }

    // SetEpisodeStepCategory 验证场景定义
    public function sceneSetEpisodeStepCategory()
    {
        return $this->append('data', 'require')
            ->append('data.entity_id', 'require|integer')
            ->append('data.project_id', 'require|integer')
            ->append('data.step_category_ids', 'require')
            ->append('data.step_category_code', 'require')
            ->append('data.seal_time', 'require|integer');
    }

}
